﻿<Window x:Class="InseSoft.Views.MaterialWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:controls="clr-namespace:InseSoft.Views.Controls"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:viewModels="clr-namespace:InseSoft.ViewModels"
        mc:Ignorable="d"
        Width="710" 
        Height="310"
        ResizeMode="NoResize"
        Title="Mantenimiento de Materiales"
        Icon="/Images/Mantenimiento.ico"
        WindowStartupLocation="CenterScreen"
    >
    <Grid d:DataContext="{d:DesignInstance {x:Type viewModels:BaseCatalogEntityViewModel}}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="290" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <controls:Toolbar Grid.ColumnSpan="2" />
        <controls:CatalogSearch Grid.Row="1" Margin="6,6,3,6" DataContext="{Binding CatalogSearchViewModel}"/>
        <StackPanel Grid.Column="1" Grid.Row="1" Margin="3,6,6,6" IsEnabled="{Binding IsItemSelected}">
            <controls:MaterialEdit  DataContext="{Binding CurrentEntity}" />
        </StackPanel>
    </Grid>
</Window>